<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 没有闪烁问题 -->
        <div v-text='msg'></div>
        <div v-text='1+2'></div>
        <div v-html='msg2'></div>
        <div v-pre>{{msg}}</div>
    </div>
    <script src="js/vue.js"></script>
    <script>
        const vue = new Vue({
            el: '#app',
            data: {
                msg: '<h3>v-text</h3>',
                msg2: '<h3>v-html</h3>',
            },
        });
    </script>
</body>

</html>